package com.szrt.java.day20170113.ch09.proxy;

import com.szrt.java.day20170113.ch09.dao.StudentDao;

public class StudentDaoProxy implements StudentDao {

	
	private StudentDao dao;
	
	
	
	public StudentDaoProxy(StudentDao dao) {
		this.dao = dao;
	}

	@Override
	public void add() {
		System.out.println("方法开始执行..");
		dao.add();
		System.out.println("方法结束执行..");
		
	}

	@Override
	public void delete() {
		System.out.println("方法开始执行..");
		dao.delete();
		System.out.println("方法结束执行..");
	}

}
